Skip to content

feat(bqjdbc): Per connection logs - Add PerConnectionFileHandler#12899

Merged
Neenu1995 merged 6 commits intomainfrom
ns/handler-per-conn-logs
Apr 24, 2026
Merged

feat(bqjdbc): Per connection logs - Add PerConnectionFileHandler#12899
Neenu1995 merged 6 commits intomainfrom
ns/handler-per-conn-logs

Conversation

@Neenu1995
Copy link
Copy Markdown
Contributor

@Neenu1995 Neenu1995 commented Apr 23, 2026

  • PerConnectionFileHandler.java: Introduced a logging handler mapping logs via InheritableThreadLocal constructs.
  • BigQueryJdbcMdc.java: Reduced interface exposure to strict package scopes.
  • PerConnectionFileHandlerTest.java: Introduced coverage validations verifying default execution routing.

@Neenu1995 Neenu1995 requested review from a team as code owners April 23, 2026 14:49
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements connection-specific logging via a new PerConnectionFileHandler and restricts the visibility of BigQueryJdbcMdc members. The review feedback focuses on preventing resource leaks by managing the lifecycle of internal FileHandler instances and improving robustness through null checks, exception-safe resource closure, and the use of ErrorManager for internal error reporting.

Neenu1995 and others added 2 commits April 23, 2026 12:20
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Neenu1995 Neenu1995 merged commit 5846197 into main Apr 24, 2026
127 of 128 checks passed
@Neenu1995 Neenu1995 deleted the ns/handler-per-conn-logs branch April 24, 2026 15:15
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Apr 24, 2026
…gleapis#12899)

- PerConnectionFileHandler.java: Introduced a logging handler mapping
logs via InheritableThreadLocal constructs.
- BigQueryJdbcMdc.java: Reduced interface exposure to strict package
scopes.
- PerConnectionFileHandlerTest.java: Introduced coverage validations
verifying default execution routing.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants